
import React from 'react';
import Button, { ButtonType, ButtonSize, ButtonShape, GradientDirection, ButtonHover } from './button'
import { Story, Meta } from '@storybook/react';
export default {
  title: 'YBui/Button',
  component: Button,
  argTypes: {
    btnType: {
      a: '5555'
    }
  }
} as Meta;
const btnType: Story<any> = ({ bType, ...rest }) => {
  console.log(9999, bType);
  return (
    <Button
      {...bType}
      {...rest}
    // btnType={ButtonType.Gradient}
    // size={ButtonSize.Large}
    // gradient={
    //   {
    //     bgColor: '#03a9f4, #f441a5,#ffeb3b,#03a9f4',
    //     direction: GradientDirection.ToRight,
    //     flow: true
    //   }
    // }
    >按钮</Button>
  )
};
export const BtnType = btnType.bind({})
BtnType.args = {
  bType: {
    btnType: ButtonType.Danger
  },
  describe: '这是一段免俗'
}
